#!/usr/bin/env python
# Network Byte Order

import sys, struct

def htons(num):
    return struct.pack('!H', num)

def htonl(num):
    return struct.pack('!I', num)

def htohs(data):
    return struct.unpack('!H', data)[0]

def ntohl(data):
    return struct.unpack('!I', data)[0]

def sendstring(data):
    return htonl(len(data)) + data

print "Enter s string:"

str = sys.stdin.readline().rstrip()

print repr(sendstring(str))



